import List from './List';
import { bindActionCreators} from 'redux';
import { connect } from 'react-redux';
import {actions} from './reducer';

const mapStateToProps = (state) => {
  const {list} = state;
  // const {list, listId} = modals;
  return list;

}

const mapDispatchToProps = (dispatch) => {
  return {...bindActionCreators(actions, dispatch)};

}
export default connect(mapStateToProps, mapDispatchToProps)(List);
